package windbell.domain.risk.impl;

import edu.fudan.langlab.domain.code.CodeType;
import edu.fudan.langlab.domain.code.CodeTypeProvider;
import edu.fudan.mylang.pf.BaseService;
import java.util.ArrayList;
import java.util.Collection;
import org.eclipse.xtext.xbase.lib.CollectionLiterals;
import org.springframework.stereotype.Service;
import windbell.domain.risk.impl.RiskCauseImpl;
import windbell.domain.risk.impl.RiskFixTypeImpl;
import windbell.domain.risk.impl.RiskLevelImpl;
import windbell.domain.risk.impl.RiskTypeImpl;

@Service("windbell.domain.risk.RiskCodeTypeProvider")
public class RiskCodeTypeProviderImpl extends BaseService implements CodeTypeProvider {
  public Collection<CodeType> getCodeTypes() {
    CodeType _codeType = new CodeType("\u4E8B\u6545\u7C7B\u578B", RiskTypeImpl.class);
    CodeType _codeType_1 = new CodeType("\u9690\u60A3\u7B49\u7EA7", RiskLevelImpl.class);
    CodeType _codeType_2 = new CodeType("\u6574\u6539\u7C7B\u578B", RiskFixTypeImpl.class);
    CodeType _codeType_3 = new CodeType("\u9690\u60A3\u6765\u6E90", RiskCauseImpl.class);
    ArrayList<CodeType> _newArrayList = CollectionLiterals.<CodeType>newArrayList(_codeType, _codeType_1, _codeType_2, _codeType_3);
    return _newArrayList;
  }
}
